<div class="panel panel-default panel-intro">
    <div class="panel-heading">
        <h3 class="panel-title">供应商对账</h3>
    </div>

    <div class="panel-body">
        <div class="row">
            <div class="col-sm-12">
                <div class="alert alert-info">
                    <h4><i class="fa fa-info-circle"></i> 对账说明</h4>
                    <p>与供应商进行账务核对，确保双方账目一致。</p>
                </div>
            </div>
        </div>

        <form id="reconciliation-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">对账编号:</label>
                <div class="col-xs-12 col-sm-8">
                    <input class="form-control" name="row[reconciliation_no]" type="text" placeholder="系统自动生成" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">供应商:</label>
                <div class="col-xs-12 col-sm-8">
                    <select class="form-control" name="row[supplier_id]" data-rule="required">
                        <option value="">请选择供应商</option>
                        {foreach $supplierList as $k=>$v}
                        <option value="{$k}">{$v}</option>
                        {/foreach}
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">对账日期:</label>
                <div class="col-xs-12 col-sm-8">
                    <input class="form-control" name="row[reconciliation_date]" type="date" data-rule="required">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">对账期间开始:</label>
                <div class="col-xs-12 col-sm-8">
                    <input class="form-control" name="row[period_start]" type="date" data-rule="required">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">对账期间结束:</label>
                <div class="col-xs-12 col-sm-8">
                    <input class="form-control" name="row[period_end]" type="date" data-rule="required">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">我方金额:</label>
                <div class="col-xs-12 col-sm-8">
                    <input class="form-control" name="row[our_amount]" type="number" step="0.01" value="0.00" data-rule="required;float" placeholder="请输入我方账目金额">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">供应商金额:</label>
                <div class="col-xs-12 col-sm-8">
                    <input class="form-control" name="row[supplier_amount]" type="number" step="0.01" value="0.00" data-rule="required;float" placeholder="请输入供应商账目金额">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">差异金额:</label>
                <div class="col-xs-12 col-sm-8">
                    <input class="form-control" name="row[difference_amount]" type="number" step="0.01" value="0.00" readonly placeholder="系统自动计算">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">对账状态:</label>
                <div class="col-xs-12 col-sm-8">
                    <select class="form-control" name="row[status]" data-rule="required">
                        <option value="pending">待确认</option>
                        <option value="confirmed">已确认</option>
                        <option value="disputed">有争议</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">备注:</label>
                <div class="col-xs-12 col-sm-8">
                    <textarea class="form-control" name="row[remark]" rows="3" placeholder="请输入对账备注信息"></textarea>
                </div>
            </div>
            <div class="form-group layer-footer">
                <label class="control-label col-xs-12 col-sm-2"></label>
                <div class="col-xs-12 col-sm-8">
                    <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
                    <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
                </div>
            </div>
        </form>
    </div>
</div>

